
export const strLength= (str?:string,lastStrLength:number=3,reaplaceStr:string="***"):string=>{
  if(!str) return
  if(str.length > lastStrLength){
    return str.substring(0,lastStrLength) + reaplaceStr
  }else{
    return str
  }

}

export const isToday =( day:Date|string)=>{
  const today = new Date();
  const todayYMD = today.toLocaleDateString();
  const checkDay = new Date(day)
  const checkDayYMD = checkDay.toLocaleDateString()
  return todayYMD === checkDayYMD
}